From: Alex Williamson Date: Mon, 10 Sep 2007 19:56:34 +0000 (-0600) Subject: [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14985 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=37eb10eb5998d0775b07f80ddc36ee59c35784a5;p=xen.git [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram() use xc_map_foreign_pages() where possible Signed-off-by: Isaku Yamahata --- diff --git a/tools/libxc/ia64/xc_ia64_hvm_build.c b/tools/libxc/ia64/xc_ia64_hvm_build.c index 5147f051e2..a5a7cc8aa3 100644 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c @@ -701,8 +701,9 @@ copy_from_GFW_to_nvram(int xc_handle, uint32_t dom, int nvram_fd) for ( i=0; i> PAGE_SHIFT) + i; - tmp_ptr = (char *)xc_map_foreign_batch(xc_handle, dom, - PROT_READ | PROT_WRITE, pfn_list, nr_pages); + tmp_ptr = (char *)xc_map_foreign_pages(xc_handle, dom, + PROT_READ | PROT_WRITE, + pfn_list, nr_pages); if ( NULL == tmp_ptr ) { PERROR("Cannot get nvram data from GFW!\n");